<%@ page language="java" contentType="text/html; charset=UTF-8"
         isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd"%>
<body>
<div class="wrap">
    <div class="h_a">搜索</div>
    <form action="${requestScope.FPWEB.rootPath }/order/list${requestScope.FPWEB.urlStuff}"  method="post" autocomplete="off">
        <div class="search_type cc">
            <label>订单号：</label>
            <input name="order_no" type="text" class="input length_3 mr10" value="${param.order_no}" placeholder="订单号">
            <label>手机号：</label>
            <input name="mobile" type="text" class="input length_3 mr10" value="${param.mobile}" placeholder="手机">
            <label>姓名：</label>
            <input name="id_name" type="text" class="input length_3 mr10" value="${param.id_name}" placeholder="姓名">
            <label>订单日期：</label>
            <input name="regdate1" type="text" class="input length_1 mr10 J_date" value="${param.regdate1}">至
            <input name="regdate2" type="text" class="input length_1 mr10 J_date" value="${param.regdate2}">
            <button type="submit" class="btn btn_submit length_1">搜索</button>
        </div>
    </form>
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td>订单id</td>
                <td>订单号</td>
                <td>借款人姓名</td>
                <td>手机号</td>
                <td>订单总金额</td>
                <td>借款金额</td>
                <td>机构名称</td>
                <td>资金渠道</td>
                <td>已还/期数</td>
                <td>订单状态</td>
                <td>下单时间</td>
                <td>商户确认时间</td>
                <td>清算日期</td>
                <td>操作</td>
            </tr>
            </thead>
            <tbody id="J_word_list">
            <c:forEach items="${pager.pagerModel.dataList }" var="item" >
                <tr>
                    <td>${item.order_id}</td>
                    <td>${item.order_no}</td>
                    <td>${item.id_name}</td>
                    <td>${item.mobile_number}</td>
                    <td>${item.strMap.order_amount}</td>
                    <td>${item.strMap.loan_amount}</td>
                    <td>${item.org_name}</td>
                    <td>${item.strMap.fund_channel_name}</td>
                    <td>${item.limit_pay}/${item.period}</td>
                    <td>${item.strMap.status}</td>
                    <td>${item.strMap.create_time}</td>
                    <td>${item.strMap.confirm_time}</td>
                    <td>${item.strMap.clear_date}</td>
                    <td>
                        <a href='<yjd:url url="/order/detail/${item.order_id }"/>' class="btn mr10">查看</a>
                        <c:if test="${item.status==0}">
                            <a class="btn btn_submit J_ajax_del" href="${requestScope.FPWEB.rootPath }/order/fristPay/${item.order_id}${requestScope.FPWEB.urlStuff}" data-msg="确定首付支付？">支付</a>
                        </c:if>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
        <!-- 分页 -->
        <%@ include file="../public/pager/pager.pagination.jsp" %>
    </div>
</div>
<script>
    YJD.use('AppAdminCommon');
</script>
</body>